<div ng-include="sys_html('common/_header')"></div>
<style>
.headinfo {
    background: none;
}
.headinfo .mod-member {
    margin: 0 auto;
	margin-top: -60px;
    width: 94%;
	left:3%;
    padding: 6px 0 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.headinfo .mod-member .sign-btn{
    position: absolute;
    margin: 0 auto;
	top: -44px;
    width: 36px;
	height: 26px;
	right:16px;
    color:#fff;
	text-align:center;
	padding-top:3px;
    background: #3976c7;
}
.bottombg {bottom:-20px;width:100%;height:80px;border-bottom-right-radius:100% 40px;border-bottom-left-radius:100% 40px;}
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
    width: 94%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.badge {
    left: 2rem;
    top: 0;
}
.syscolor{color:#3976c7}
.sysbgcolor{background:#3976c7}
</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
		<div class="bottombg" style="background:#3976c7"></div>
			<div class="headinfo" style="height:auto;">	
				<div class="mod-member">
					<div class="sign-btn" href="javascript:;" ng-click="access_json('core/member.qiandao/')" style="background:#3976c7;">打卡</div>
						<div class="headinfo" style="background:none;padding:0;color:#999">
												<div class="child userinfo" style="padding-bottom:5px;color:#999;width:4rem">
													<div class="face" style="margin-right:0.6rem;padding: 0.1rem;">
															<img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}" />
															<span class="vip" style="top: 2rem;background: {{main.syscolor || '#3976c7'}} none repeat scroll 0 0;"><i class="icon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem"></i></span>
													</div>
												</div>
												<div class="child userinfo" style="padding-bottom:0;color:#999;flex: 1;text-align:left;">
													<div class="l bold" style="width:100%">{{pagedata.item.name}} （<span onclick="$('#show_vipcard').modal();"  style="color:{{main.syscolor || '#3976c7'}}"> ID: {{pagedata.item.mid || '无'}}</span>）</div>
													<div class="l">
														<div style="width:100%;font-size:12px">手机: {{pagedata.item.mobile}}</div>
														<div style="font-size:12px">
														<span>{{pagedata.item.email}}</span>
														</div>
													</div>
												</div>
									
						</div>
						<div class="fui-icon-group noborder col-2">
												<div class="fui-icon-col-sm external" style="margin:0">
													<div href="javascript:;" ng-click="access_json('core/member.recharge/')">
														<div class="text bold" style="font-size:0.8rem;">{{pagedata.item.mymembernum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">累积客户</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="text bold" style="font-size:0.8rem;">{{pagedata.item.myqunnum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">累积客户群</div>
													</div>
												</div>
						</div>
						<div class="fui-icon-group noborder  col-4">
												<div class="fui-icon-col-sm external">
													<div href="javascript:;" ng-click="access_json('core/member.recharge/')">
														<div class="text bold">{{pagedata.item.daymembernum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">今日新增</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external">
													<div>
														<div class="text bold">{{pagedata.item.dayliushinum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">今日流失</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external">
													<div>
														<div class="text bold">{{pagedata.item.daygenjinnum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">今日跟进</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external">
													<div>
														<div class="text bold">{{pagedata.item.genjinnum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">累计根据</div>
													</div>
												</div>
						</div>
					</div>
				</div>
				<div class="weui_btn_area" style="margin:0.5rem 0.6rem">
					 <a class="weui_btn weui_btn_primary sysbgcolor" href="javascript:" ng-click="access_json('jy_workliu/upworker/')">+工作日志</a>
				</div>
						<div class="fui-cell-group fui-cell-click mod-group" style="padding-bottom:0.6rem">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_scrm/member.list/')">
								<div class="fui-cell-text bold" style="font-size:1rem;">跟进简报</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看客户</div>
							</a>
							<div class="fui-cell-group">
								<div class="fui-tab-scroll" style="height:2rem">
									<div ng-repeat="item in pagedata.statuslist" ng-class="{'item':1,'active':pagedata.buystatus == $index}" style="line-height:1.8rem;padding: 0.1rem 0.6rem;" ng-click="pagedata.buystatus=$index">{{item.title}}</div>
								</div>
								<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_scrm/member.list/')">
											<div class="fui-cell-text bold" style="font-size:0.8rem;">
												当前状态人数
											</div>
											<div class="fui-cell-remark bold" style="font-size:0.8rem;">{{pagedata.statuslist[pagedata.buystatus]['num']}}</div>
								</a>
							</div>
							<div class="fui-icon-group noborder  col-2">
									<div ng-repeat="item in pagedata.statuslist[pagedata.buystatus].list" class="fui-icon-col-sm external">
										<div href="javascript:;" ng-click="access_json('jy_scrm/member.list//')">
											<div class="text bold">{{item.num || '0'}}</div>
											<div class="subtitle" style="font-size:12px;color: #666;">{{item.title}}</div>
										</div>
									</div>
							</div>
						</div>
				<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>
<div id="show_vipcard"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="top:30%;">
			<div class="memlogo-area" style="background:url({{tomedia(pagedata.item.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
                    <div class="memlogo">
                        <img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}">
                    </div>
                    <div class="name">{{pagedata.item.nickname || '匿名'}}</div>
                    <br>
                    <div class="name">{{pagedata.item.mobile || '无手机号'}}</div>
                    <div class="code">
                        <img ng-src="{{tomedia(pagedata.account.logo) || '../core/resource/images/wxappicon.png'}}">
                    </div>
                    <div class="bot">
						<img id="barcode" style="height:2.5rem"/>
                        <span class="r-f">{{pagedata.item.level}}</span>
                    </div>
            </div>
		</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_sales','','','jy_weishop')"></div>
<script>
require(['JsBarcode'],function(JsBarcode){
	//console.log('准备调用');
	JsBarcode('#barcode',scope.pagedata.item.id,{fontSize:36});
});
</script>